<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<span class="btn btn-danger"><i class="icon-lock"></i>屏蔽</span>
		<span class="btn btn-warning"><i class="icon-unlock"></i>解除屏蔽</span>
		<span class="btn btn-success"><i class="icon-edit"></i>编辑</span>
	</div>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>名称 </th>
			<th>是否公开 </th>
			<th>创建时间</th>
			<th>创建人</th>
			<th style="width:10%;text-align: center;">操作 </th>
		</tr>
	</thead>
	<tbody>
		<#list pageBean.resultList as pb>
		<tr style="display: table-row;">
			<td>${(pb.name)!''}</td>
			<td><@mt.YesOrNo r=false value="${(pb.isPublic)!''}" d=false mc=true /></td>
			<td>${(pb.ct)!''}</td>
			<td>${(pb.cun)!''}</td>
			<td>
				<button class="btn btn-xs btn-success" onclick="javascript:sys_load_handle('data-edit_${pb.code}'); return false;" title="编辑">
					<i class="icon-edit"></i>
				</button>
				<#if !pb.deleted>
				<button class="btn btn-xs btn-danger" onclick="javascript: shield_data('${pb.code}', '${pb.name}');" title="屏蔽">
					<i class="icon-lock"></i>
				</button>
				<#else>
				<button class="btn btn-xs btn-warning" onclick="javascript: unshield_data('${pb.code}', '${pb.name}');" title="解除屏蔽屏蔽">
					<i class="icon-unlock"></i>
				</button>
				</#if>
			</td>
		</tr>
		</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_data' />